﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.SolveLoops.ViewModels.DataGridItem
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Windows.Media;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands.SolveLoops.ViewModels;

public class DataGridItem
{
  public ImageSource ObjectIcon { get; set; }

  public string ObjectName { get; set; }

  public TxJoint JointObject { get; set; }

  internal DataGridItem(ImageSource icon, string name, TxJoint obj)
  {
    this.ObjectIcon = icon;
    this.ObjectName = name;
    this.JointObject = obj;
  }

  public override bool Equals(object obj)
  {
    return obj is DataGridItem dataGridItem && TxJoint.op_Inequality(dataGridItem.JointObject, (ITxObject) null) && dataGridItem.JointObject.Id.Equals(this.JointObject.Id);
  }
}
